<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>顶部页面</title>
<%String path = request.getContextPath(); %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/Common.css" />
  <script type="text/javascript" src="<%=path%>/js/jquery.js"></script>
    <script src="<%=path%>/js/Common.js"></script>
    <script src=""></script>
    <script type="text/javascript">
        $(function () {
            keepAlive();
            setInterval(keepAlive, 60 * 1000);
        });

        function keepAlive () {
            $.get("/System/KeepAlive", null, function (result) {
                if (result.ResultCode == "SUCCESS") {
                    $("#currentTime").text(result.CurrentTime);
                }
            }, "JSON");
        }

        function exit() {
            if (confirm("确定要退出登录吗？")) {
                $.post("/Home/UserLogout", null, function (result) {
                    if (result.ResultCode == "SUCCESS") {
                        window.parent.location.href = "/Home/Login";
                    }
                }, "JSON");
            }
        }
    </script>
</head>
<body style="margin:0px; padding:0px; border:0px;">
    <div style="width:100%; height:74px; margin:0px auto; padding:0px;">
        <div style="width: 100%; height: 6px; background-color: #e74c5e;"></div>
        <div style="width:100%; height:68px; background-color:white; margin:0px auto; padding:0px;">
            <div style="width:380px; height:68px;margin:0px; padding:0px; float:left;">
                <img src="<%=path%>/images/logo.png" style="width:380px; height:68px; margin:0px; padding:0px; border:0px; float:left;" />
            </div>
            <div style="width:68px; height:68px; float:right;">
                <img onclick="exit();" title="退出登录" style="cursor:pointer;" src="<%=path%>/images/logout.png" />
            </div>
            <div style="height: 68px; line-height: 68px; margin: 0px 20px 0px 20px; float: right; color: #e74c5e; ">
                <span id="currentTime"></span>&nbsp;&nbsp;欢迎你：超级管理员
            </div>
            <div style="width:68px; height:68px; float:right;">
                <img src="<%=path%>/images/user.png" />
            </div>
        </div>
    </div>
</body>
</html>